import request from '@/utils/request'

// 查询视频任务三连配置列表
export function listBilibiliTask(query) {
  return request({
    url: '/system/bilibiliTask/list',
    method: 'get',
    params: query
  })
}

// 查询视频任务三连配置详细
export function getBilibiliTask(id) {
  return request({
    url: '/system/bilibiliTask/' + id,
    method: 'get'
  })
}

// 新增视频任务三连配置
export function addBilibiliTask(data) {
  return request({
    url: '/system/bilibiliTask',
    method: 'post',
    data: data
  })
}

// 修改视频任务三连配置
export function updateBilibiliTask(data) {
  return request({
    url: '/system/bilibiliTask',
    method: 'put',
    data: data
  })
}

// 删除视频任务三连配置
export function delBilibiliTask(id) {
  return request({
    url: '/system/bilibiliTask/' + id,
    method: 'delete'
  })
}
